import os
import sys
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meiduo_malll.settings.dev')
sys.path.insert(0,'../../../')
from users.models import User
from oauth.models import OAuthQQUser
from itsdangerous import TimedJSONWebSignatureSerializer



user=User.objects.get(mobile='15270698282')
print(type(user),user.username)
oauth=OAuthQQUser.objects.get(user=user)
print(oauth.openid)

